<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%String path = request.getContextPath();%>
<form id="pagerForm" method="post" action="<%=path %>/notificationTaskLog/listNotificationTaskLog.action">
	<input type="hidden" name="pageRequest" value="1" />
	<input type="hidden" name="pageNum" value="${paginator.pageIndex}" />
	<input type="hidden" name="numPerPage" value="${paginator.pageSize}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" rel="pagerForm" action="<%=path %>/notificationTaskLog/listNotificationTaskLog.action" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label style="text-align: right;">服务计划：</label>
				<select name="notificationTaskLogVO.template.id" class="combox">
					<option value="">==选择服务计划==</option>
					<c:forEach var="item" items="${templates}">
						<option value="${item.id}" ${notificationTaskLogVO.template.id eq item.id ? "selected" : "" }>${item.name}</option>
					</c:forEach>
				</select>
			</li>
			<li>
				<label style="text-align: right;">提醒类型：</label>
				<select id="targetType" name="notificationTaskLogVO.template.targetType" class="combox">
					<option value="">==选择提醒类型==</option>
					<c:forEach var="item" items="${templateTargetTypes}">
						<option value="${item.name}" ${notificationTaskLogVO.template.targetType eq item.name?"selected":"" }>${item.title}</option>
					</c:forEach>
				</select>
			</li>
			<li>
				<label style="text-align: right;">会员卡：</label>
				<input name="notificationTaskLogVO.memberCardId" value="<s:property value="notificationTaskLogVO.memberCardId" />" type="hidden">
				<input onclick="$('#notificationTaskLogList_a_btnLook').trigger('click');" style="cursor: pointer;float: left;" name="notificationTaskLogVO.memberName" value="<s:property value="notificationTaskLogVO.memberName" />" >
				<!--<a class="btnLook" id="notificationTaskLogList_a_btnLook" href="<%=path %>/memberCard/listMemberCard.action?searchType=lookup" lookupGroup="notificationTaskLogVO">选择</a>  -->
			</li>
		</ul>
		<ul class="searchContent">
			<li style="width:450px">
				<label style="text-align: right;">任务时间：</label>
				从<input type="text" name="notificationTaskLogVO.gttaskTime" value='<s:date name='notificationTaskLogVO.gttaskTime' format="yyyy-MM-dd HH:mm:ss"/>'  dateFmt="yyyy-MM-dd HH:mm:ss" class="date" readonly="readonly" size="19"/>
				到<input type="text" name="notificationTaskLogVO.lttaskTime" value='<s:date name='notificationTaskLogVO.lttaskTime' format="yyyy-MM-dd HH:mm:ss"/>'  dateFmt="yyyy-MM-dd HH:mm:ss" class="date" readonly="readonly" size="19"/>
			</li>
			<li style="width:450px">
				<label style="text-align: right;">发送时间：</label>
				从<input type="text" name="notificationTaskLogVO.gtsendTime" value='<s:date name='notificationTaskLogVO.gtsendTime' format="yyyy-MM-dd HH:mm:ss"/>'  dateFmt="yyyy-MM-dd HH:mm:ss" class="date" readonly="readonly" size="19"/>
				到<input type="text" name="notificationTaskLogVO.ltsendTime" value='<s:date name='notificationTaskLogVO.ltsendTime' format="yyyy-MM-dd HH:mm:ss"/>'  dateFmt="yyyy-MM-dd HH:mm:ss" class="date" readonly="readonly" size="19"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<!-- 
			<li><a class="add" href="<%=path %>/notificationTaskLog/addNotificationTaskLog.action" target="navTab"><span>添加</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="key" postType="string" href="<%=path %>/notificationTaskLog/deleteNotificationTaskLog.action" class="delete"><span>删除</span></a></li>
			<li><a class="edit" href="<%=path %>/notificationTaskLog/editNotificationTaskLog.action?notificationTaskLogVO.id={sid_user}" target="navTab" warn="请选择一条记录"><span>修改</span></a></li>
			 -->
		</ul>
	</div>
	<table class="table" width="100%" layoutH="164">
		<thead>
			<tr>
			<!-- 	<th width="30"><input type="checkbox" group="ids" class="checkboxCtrl"></th> -->
				<th>会员卡</th>
				<th>模板</th>
				<th>提醒类型</th>
				<th>任务时间</th>
				<th>发送时间</th>
				<th width="70">操作</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="notificationTaskLogList" id="notificationTaskLog" status="st">
				<tr target="sid_user" rel="<s:property value="id" />">
				<!-- 		<td><input name="key" value="<s:property value="id" />" type="checkbox"></td> -->
             <td><s:property value="memberCard.memberName" /></td>
             <td> <s:property value="template.name" /></td>
            <td> <s:property value="template.targetTypeTitle" /></td>
	<td><s:date name="taskTime" format="yyyy-MM-dd HH:mm:ss" /></td>
	<td><s:date name="sendTime" format="yyyy-MM-dd HH:mm:ss" /></td>
					<td>
						<!--
						<a title="确实要删除这条记录吗?" target="ajaxTodo" href="<%=path %>/notificationTaskLog/deleteNotificationTaskLog.action?ids=<s:property value="id" />" class="btnDel">删除</a>
						<a title="编辑" target="navTab" href="<%=path %>/notificationTaskLog/editNotificationTaskLog.action?notificationTaskLogVO.id=<s:property value="id" />" class="btnEdit">编辑</a>
						 -->
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
					<option value="15" <c:if test="${paginator.pageSize==15}">selected='selected'</c:if> >15</option>
					<option value="50" <c:if test="${paginator.pageSize==50}">selected='selected'</c:if> >50</option>
					<option value="100" <c:if test="${paginator.pageSize==100}">selected='selected'</c:if> >100</option>
					<option value="200" <c:if test="${paginator.pageSize==200}">selected='selected'</c:if> >200</option>
				</select>
				<span>条，共${paginator.totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="${paginator.totalCount}" 
				numPerPage="${paginator.pageSize}" pageNumShown="10" currentPage="${paginator.pageIndex}"></div>

	</div>
</div>